<?php
/**
 * Auther: Joshua Conero
 * Date: 2017/7/9 0009 12:38
 * Email: brximl@163.com
 * Name:
 */

namespace App\Utils;


class Loader
{
    public static function lib($name=null){
        $name = $name? $name:'hyang';
        spl_autoload_register(function($class) use($name){
            if(false !== strpos($class,$name)){
                $file = __DIR__.'/'.$class.'.php';
                if(is_file($file)) include_once($file);
            }
        });
    }
}